<div class="sidebar {{ tog ? 'collapse' : ''}}">
    <h3>
        <img :src="userobj.avatar" alt="">
        <span>{{ userobj.name ? userobj.name : userobj.phone }}</span>
    </h3>
    <ul class="menu" v-if="userobj">
        <li :class="{ on: index == 'home' }">
            <a href="../team/index.html">
                <i class="icon-home"></i>
                <span>首页</span>
            </a>
        </li>
        <li :class="{ on: index == 'proxy' }" v-if="userobj.level < 4">
            <a href="../team/proxy.html">
                <i class="icon-proxy"></i>
                <span>下级管理</span>
            </a>
            <ul>
                <li :class="{ on: sub == 'nextproxy' }">
                    <a href="../team/proxy.html">下级代理</a>
                </li>
                <li :class="{ on: sub == 'members' }">
                    <a href="../team/members.html">普通会员</a>
                </li>
            </ul>
        </li>
        <li :class="{ on: index == 'inquiry' }" v-if="userobj.level < 4">
            <a href="../inquiry/fee.html">
                <i class="icon-teamsch"></i>
                <span>团队查询</span>
            </a>
            <ul>
                <li :class="{ on: sub == 'fee' }">
                    <a href="../inquiry/fee.html">手续费</a>
                </li>
                <li :class="{ on: sub == 'funds' }">
                    <a href="../inquiry/funds.html">资金查询</a>
                </li>
                <li :class="{ on: sub == 'hold' }" v-if="userobj.level == 1">
                    <a href="../inquiry/hold.html">持仓查询</a>
                </li>
            </ul>
        </li>
        <li :class="{ on: sub == 'members' }" v-if="userobj.level == 4">
            <a href="../team/members.html">
                <i class="icon-menbers"></i>
                <span>普通会员</span>
            </a>
        </li>
    </ul>
</div>
